#include<bits/stdc++.h>

using namespace std;

inline int gcd(int a, int b) {
    return b == 0 ? a : gcd(b, a % b);
}

int main() {
    int cnt = 0;
    for (int a = 1; a <= 1000; a++)
        for (int b = a + 1; b <= 1000; b++) {
            if (gcd(a, b) > 1)continue;
            int c = sqrt(a * a + b * b);
            if (c > 1000)continue;
            if (a * a + b * b == c * c) {
                ++cnt;
                cout << a << " " << b << " " << c << endl;
                if (cnt == 100) {
                    return 0;
                }
            }
        }

    return 0;
}